<?php echo $head ?>
<?php echo $b_head?>
    <form action="" method="post" class="form form-horizontal">
        <div class="settings" style="display: block;">
            <div class="panel panel-default">
                <div class="panel-heading">基础设置</div>
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">程序标题</label>
                        <div class="col-sm-9">
                            <input class="form-control" name="title" value="口红机" placeholder="程序标题，如：抖抖赢口红">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">防沉迷金额</label>
                        <div class="col-sm-9">
                            <div class="input-group">
                                <input class="form-control" name="maxMoney" id="maxMoney" type="number" value="600">
                                <span class="input-group-addon">元</span>
                            </div>
                            <div class="help-block">该金额为限制用户每月储值的最大金额，超出则无法继续储值</div>
                            <div class="help-block">0或不填则不限制</div>
                            <div class="help-block">
                                该限制以最后一次充值为准，例如：设置金额10元，用户已充值6元，此时用户选择再充值6元，是可以正常充值的；充值后，则用户共充值了12元，此时用户再充值则会提示充值金额已超出，无法继续充值
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">新人奖励</label>
                        <div class="col-sm-9">
                            <div class="input-group">
                                <input class="form-control" name="newaward" type="number" value="">
                                <span class="input-group-addon">余额</span>
                            </div>
                            <span class="help-block">不填或留空则表示新人无奖励</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">闯关二次确认</label>
                        <div class="col-sm-9">
                            <label><input type="radio" name="isTip" checked="checked" value="0"> 关闭</label>
                            <label style="margin-left: 10px;"><input type="radio" name="isTip" value="1"> 开启</label>
                            <div class="help-block">开启二次确认后，用户开始点商品挑战之前会询问是否真的挑战，防止点错</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">底部版权设置</label>
                        <div class="col-sm-9">
                            <input class="form-control" name="copyright" value="京东直营 正品发货到家">
                            <div class="help-block">显示在首页和我的页面</div>
                            <div class="help-block">不填则不显示</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">平台微信号</label>
                        <div class="col-sm-9">
                            <input class="form-control" name="wxNo" value="">
                            <div class="help-block">游戏闯关后显示的微信号</div>
                            <div class="help-block">不填则不显示</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">闯关完成后<br>加平台微信的提示语</label>
                        <div class="col-sm-9">
                            <input class="form-control" name="wxTip" value="">
                            <div class="help-block">游戏闯关后(不管成功失败)加平台微信的提示语</div>
                            <div class="help-block">不填则不显示</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">默认分享标题</label>
                        <div class="col-sm-9">
                            <input class="form-control" name="share[title]" value="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">默认分享描述</label>
                        <div class="col-sm-9">
                            <input class="form-control" name="share[des]" value="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">默认分享图</label>
                    </div>
                </div>
            </div>
        </div>

        <div class="settings" style="display: none;">
            <div class="panel panel-default">
                <div class="panel-heading">码支付参数(第三方支付请自行官网申请对接，只要复制对应参数填这里就行了)</div>
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">码支付官网</label>
                        <div class="col-sm-9">
                            <div class="help-block"><a target="_blank"
                                                       href="https://codepay.fateqq.com/i/151241">点击打开官网</a></div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">码支付</label>
                        <div class="col-sm-9">
                            <label><input type="radio" name="codepay[status]" checked="checked" value="0"> 关闭</label>
                            <label style="margin-left: 10px;"><input type="radio" name="codepay[status]" value="1">
                                开启</label>
                            <div class="help-block">开启了则优先使用码支付；使用码支付微信收款功能</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">码支付ID</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="codepay[id]" class="form-control" value="1111">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">码支付通讯密钥</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="codepay[key]" class="form-control" value="1111">
                        </div>
                    </div>
                </div>
                <div class="panel-heading">fastpay参数(第三方支付请自行官网申请对接，只要复制对应参数填这里就行了)</div>
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">fastpay官网</label>
                        <div class="col-sm-9">
                            <div class="help-block"><a target="_blank" href="http://api.hxs823.cn/?login_uid=2194">点击打开官网</a>
                            </div>
                            <div class="help-block">在收款-&gt;个人收款配置 接入网址填写你的域名，回调网址填写:
                                http://域名/addons/junsion_winaward/fast_notify.php
                            </div>
                            <div class="help-block">然后按照fastpay官网的接入流程操作</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付开关</label>
                        <div class="col-sm-9">
                            <label><input type="radio" name="fastpay[status]" checked="checked" value="0"> 关闭</label>
                            <label style="margin-left: 10px;"><input type="radio" name="fastpay[status]" value="1">
                                开启</label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">appkey</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="fastpay[id]" class="form-control" value="111">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">secretkey</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="fastpay[key]" class="form-control" value="1111">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付域名</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="fastpay[host]" class="form-control" value="1111">
                            <div class="help-block">默认不用填！！！这里提供给独立设置了支付域名的使用；如果你没有 不用填</div>
                            <div class="help-block">域名带上http；结尾带上/</div>
                        </div>
                    </div>
                </div>
                <div class="panel-heading">恒凌支付参数(第三方支付请自行官网申请对接，只要复制对应参数填这里就行了)</div>
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">恒凌支付官网</label>
                        <div class="col-sm-9">
                            <div class="help-block"><a target="_blank" href="https://henglingnet.com/login">点击打开官网</a>
                            </div>
                            <div class="help-block">注册推荐号填写35</div>
                            <div class="help-block">按照恒凌支付官网的接入流程操作</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付开关</label>
                        <div class="col-sm-9">
                            <label><input type="radio" name="hlpay[status]" checked="checked" value="0"> 关闭</label>
                            <label style="margin-left: 10px;"><input type="radio" name="hlpay[status]" value="1">
                                开启</label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">商户ID</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="hlpay[id]" class="form-control" value="111">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">商户密钥</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="hlpay[key]" class="form-control" value="111">
                        </div>
                    </div>
                </div>
                <div class="panel-heading">支付参数</div>
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">借用支付公众号</label>
                        <div class="col-sm-9 col-xs-12">
                            <div class="input-group">
                                <select class="form-control" name="buniacid">
                                    <option value="0">不借用</option>
                                </select>
                                <div class="input-group-btn" onclick="onClear()"><a class="btn btn-danger">清除用户缓存</a>
                                </div>
                            </div>
                            <div class="help-block">如果要借用支付，这里请选择有支付能力的公众号</div>
                            <div class="help-block">被选的公众号的网页授权域名请保持跟活动公众号的一致</div>
                            <div class="help-block">如果要借用支付，下面支付商户号和支付秘钥请填写被借用支付号的信息</div>
                            <div class="help-block">当你切换了另一个支付号时，要点击清除用户缓存，否则旧用户无法支付</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付商户号</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="mchid1" class="form-control" value="">
                            <div class="help-block">请确保输入内容不带空格！！仔细检查</div>
                            <div class="help-block">记得在 微信支付后台-&gt;产品中心-&gt;开发配置 设置支付授权目录;内容为： 域名/app/</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付秘钥</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="APPKEY1" class="form-control" value="asdfasdf">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">服务器IP</label>
                        <div class="col-sm-9 col-xs-12">
                            <input type="text" name="ip1" class="form-control" value="117.131.119.2">
                            <span class="help-block">服务器ip和下面2个证书，只有在使用微信企业付款到零钱提现时，才需要填写</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">商户支付证书</label>
                        <div class="col-sm-9 col-xs-12">
                            <textarea class="form-control" name="cert1" rows="8"
                                      placeholder="为保证安全性, 不显示证书内容. 若要修改, 请直接输入"></textarea>
                            <span class="help-block">从商户平台上下载支付证书, 解压并取得其中的 <mark>apiclient_cert.pem</mark> 用记事本打开并复制文件内容, 填至此处</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付证书私钥</label>
                        <div class="col-sm-9 col-xs-12">
                            <textarea class="form-control" name="key1" rows="8"
                                      placeholder="为保证安全性, 不显示证书内容. 若要修改, 请直接输入"></textarea>
                            <span class="help-block">从商户平台上下载支付证书, 解压并取得其中的 <mark>apiclient_key.pem</mark> 用记事本打开并复制文件内容, 填至此处</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <button class="btn btn-primary" type="submit" name="submit" value="提交">提交</button>
    </form>
</div>